﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace Langben.DAL
{
    [MetadataType(typeof(ts_employeeMetadata))]//使用ts_employeeMetadata对ts_employee进行数据验证
    public partial class ts_employee : IBaseEntity
    {
      
        #region 自定义属性，即由数据实体扩展的实体
        
        #endregion

    }
    public class ts_employeeMetadata
    {
			[ScaffoldColumn(false)]
			[Display(Name = "Id", Order = 1)]
			public object Id { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "类型", Order = 2)]
			[StringLength(30, ErrorMessage = "长度不可超过30")]
			public object c_type { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "人员名称", Order = 3)]
			[StringLength(30, ErrorMessage = "长度不可超过30")]
			public object c_name { get; set; }


    }


}

